package com.lyn.solitude.plugin.support

import android.os.Bundle
import androidx.viewbinding.ViewBinding

/**
 * @author longyn 2024/5/16
 * @version 1.0.0
 */
abstract class BasePlugin<V : ViewBinding> : PluginSupport() {

    lateinit var binding: V
    abstract fun getViewBinding(): V

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = getViewBinding()
        setContentView(binding.root)
    }
}